package cn.kimming.rpc.common.annotation;

import cn.kimming.rpc.common.constant.LoadBalance;
import cn.kimming.rpc.common.constant.ProxyWay;
import cn.kimming.rpc.common.constant.SerializationWay;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RpcReference {
    String ip() default "";

    int port() default -1;

    String registryUrl() default "";

    long timeout() default -1;

    SerializationWay serializationWay() default SerializationWay.NONE;

    ProxyWay proxyWay() default ProxyWay.NONE;

    LoadBalance loadBalance() default LoadBalance.NONE;
}
